package model;

/**
 * Represents a road object in the simulation field.
 * 
 * @author Leo van Alphen
 * @version 2014.01.26
 */

public class ModifierRoad extends FieldModifier {

	/* The level of traffic on this road, increasing this value with increase the chance
	 * an animal gets hit by a car when crossing a road tile.
	 */
    private static double LEVEL_OF_TRAFFIC = .02;
   
    /**
     * Creates a road object at a given location on the field.
     * @param Field the simulation field
     * @param Location the location of the grass on the field
     */ 
    
	public ModifierRoad(Field field, Location location) {
		super(field, location);
	}
    
	/**
     * Returns the traffic level on the roads.
     * @return double traffic level
     */
	
	public static double getTrafficLevel() {
		return LEVEL_OF_TRAFFIC;
	}

	/**
     * Sets the traffic level on the roads.
     * @param double traffic level
     */
	
	public static void setTrafficLevel(double TrafficLevel) {
		LEVEL_OF_TRAFFIC = TrafficLevel;
	}
	
	public String toString() {
		return "Road";
	}

}
